﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModels.Entities
{
    /// <summary>
    /// 构造函数和只读属性
    /// </summary>
    public class ConstructorEntity
    {
        private int _id;
        public string Text { get; private set; }
        public double Number { get; }

        public ConstructorEntity(int id, string text, double number)
        {
            _id = id;
            Text = text;
            Number = number;
        }
    }
}
